package cn.wolfcode.luowowo.repository;


import cn.wolfcode.luowowo.domain.Banner;
import cn.wolfcode.luowowo.domain.Travel;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 横幅持久层接口
 */
@Repository
public interface BannerRepository extends MongoRepository<Banner, String> {
    //根据状态查找对应的内容
    List<Banner> findAllByType(int typeTravel, PageRequest sequence);
}
